<template>
  <view class="result-page">
	<!-- <uv-navbar title="" autoBack placeholder  bgColor="#fff" /> -->
	<ResultPage
	    :status = "status"
	    :title = "title"
	    :desc = "desc"
	    :customText="customText"
		:backNum="backNum"
	    
	/>
    
  </view>
</template>

<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import ResultPage from './components/ResultPage.vue'
// 参数接收
const status = ref('success')  // success / error / warning / info / waiting
const title = ref('操作成功')
const desc = ref('您的操作已顺利完成')
const backNum=ref(1)

// 按钮控制
const showBack = ref(true)
const showHome = ref(true)
const customText = ref('再试一次')

onLoad((options) => {
  if (options.status) status.value = options.status
  if (options.title) title.value = decodeURIComponent(options.title)
  if (options.desc) desc.value = decodeURIComponent(options.desc)
  if (options.customText) customText.value = decodeURIComponent(options.customText)
  if (options.back_num) backNum.value = decodeURIComponent(options.back_num)
})



</script>

<style scoped>
</style>
